projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55061ec
)
cssnodedeclaration: Set element name and id on widget path
author
Benjamin Otte
<otte@redhat.com>
Sat, 21 Nov 2015 01:11:58 +0000
(
02:11
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 21 Nov 2015 01:14:08 +0000
(
02:14
+0100)
Otherwise the widget path creation functions will fail. This affects
widgets still using gtk_style_context_save().
https://bugzilla.gnome.org/show_bug.cgi?id=758442
gtk/gtkcssnodedeclaration.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssnodedeclaration.c
b/gtk/gtkcssnodedeclaration.c
index 1c5187b4b6d1bd7f67858845566ceead10ff2fbf..99ff6b5df18f4912663754c3c8ad1483019f71eb 100644
(file)
--- a/
gtk/gtkcssnodedeclaration.c
+++ b/
gtk/gtkcssnodedeclaration.c
@@
-621,6
+621,10
@@
gtk_css_node_declaration_add_to_widget_path (const GtkCssNodeDeclaration *decl,
GtkRegion *regions;
guint i;
+ /* Set name and id */
+ gtk_widget_path_iter_set_object_name (path, pos, decl->name);
+ gtk_widget_path_iter_set_name (path, pos, decl->id);
+
/* Set widget regions */
regions = get_regions (decl);
for (i = 0; i < decl->n_regions; i++)